package com.itheima.edu.info.manajer.controller;

import com.itheima.edu.info.manajer.domain.Student;
import com.itheima.edu.info.manajer.service.StudentService;

import java.util.Scanner;

public class StudentController extends BeseController {
    Scanner sc=new Scanner(System.in);
    //键盘录入学生信息
    @Override
    public  Student inputStundetInfo(String id){
        System.out.println("请输入学生姓名");
        String name = sc.next();
        System.out.println("请输入学生年龄");
        String age = sc.next();
        System.out.println("请输入学生生日");
        String birthday = sc.next();
        //2.学生信息封装成学生对象
        Student stu = new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}
